import request from '@/utils/request'


export function getWebUserList(params) {
  return request({
    url: '/auth/staffUser/findList',
    data:params,
  })
}

export function enableUser(data) {
  return request({
    url: '/auth/staffUser/isEnableRole',
    data:data
  })
}

export function deleteUser(data) {
  return request({
    url: '/auth/staffUser/deleteUser',
    data:data
  })
}

export function getRoleList(params) {
  return request({
    url: '/auth/authRole/findList',
    data:params,
  })
}

export function getAllRole(data) {
  return request({
    url: '/auth/authRole/getAllRoles',
    data:data
  })
}

export function getMenuList(data) {
  return request({
    url: '/auth/authMsMenu/findList',
    data:data
  })
}

export function getRoleDetail(data) {
  return request({
    url: '/auth/authRole/findDetail',
    data:data
  })
}

export function saveRole(data) {
  return request({
    url: '/auth/authRole/saveRole',
    data:data
  })
}

export function deleteRole(data) {
  return request({
    url: '/auth/authRole/deleteRole',
    data:data
  })
}

export function getWebUserDetail(data) {
  return request({
    url: '/auth/staffUser/findDetail',
    data:data
  })
}

export function saveWebUser(data) {
  return request({
    url: '/auth/staffUser/saveUser',
    data:data
  })
}

export function savePassword(data) {
  return request({
    url: '/auth/staffUser/savePassword',
    data:data
  })
}

export function generatePassword(data) {
  return request({
    url: '/auth/staffUser/generatePassword',
    data:data
  })
}

export function login(data) {
  return request({
    url: '/auth/login',
    data:data
  })
}

export function testMenu(data) {
  return request({
    url: '/admin/adminMenu/findList',
    data:data
  })
}



